import request from '@/utils/request'

// 查询补发诉求单列表
export function listAiDemandsMenu(query) {
  return request({
    url: '/business/aiDemandsMenu/list',
    method: 'get',
    params: query
  })
}

// 查询补发诉求单详细
export function getAiDemandsMenu(id) {
  return request({
    url: '/business/aiDemandsMenu/' + id,
    method: 'get'
  })
}

// 新增补发诉求单
export function addAiDemandsMenu(data) {
  return request({
    url: '/business/aiDemandsMenu',
    method: 'post',
    data: data
  })
}

// 修改补发诉求单
export function updateAiDemandsMenu(data) {
  return request({
    url: '/business/aiDemandsMenu',
    method: 'put',
    data: data
  })
}

// 删除补发诉求单
export function delAiDemandsMenu(id) {
  return request({
    url: '/business/aiDemandsMenu/' + id,
    method: 'delete'
  })
}
